package com.zwy.booksystem.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zxpdmw
 * @since 2020-05-02
 */
@TableName("t_book")
public class Book extends Model<Book> {

    private static final long serialVersionUID=1L;

      @TableId(value = "bookID", type = IdType.AUTO)
      private Integer bookID;

    @TableField("bookName")
    private String bookName;

    @TableField("bookCounts")
    private Integer bookCounts;

    private String detail;

    
    public Integer getBookID() {
        return bookID;
    }

      public void setBookID(Integer bookID) {
          this.bookID = bookID;
      }
    
    public String getBookName() {
        return bookName;
    }

      public void setBookName(String bookName) {
          this.bookName = bookName;
      }
    
    public Integer getBookCounts() {
        return bookCounts;
    }

      public void setBookCounts(Integer bookCounts) {
          this.bookCounts = bookCounts;
      }
    
    public String getDetail() {
        return detail;
    }

      public void setDetail(String detail) {
          this.detail = detail;
      }

    @Override
    protected Serializable pkVal() {
          return this.bookID;
      }

    @Override
    public String toString() {
        return "Book{" +
              "bookID=" + bookID +
                  ", bookName=" + bookName +
                  ", bookCounts=" + bookCounts +
                  ", detail=" + detail +
              "}";
    }
}
